package kotlincode;

public class Chapter09 {


    class UniversalDB implements DB {
        DB db;
        public UniversalDB(DB db) { this.db = db; }
        //  手动重写接口，将 save 委托给 db.save()
        @Override//            ↓
        public void save() { db.save(); }
    }
}


